package com.java1412.controller;

import com.java1412.entity.UserAddress;
import com.java1412.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author java1412
 * @create 2021-07-06 14:59
 */
@RestController
public class OrderController {
    @Autowired
    private OrderService orderService;

    @RequestMapping("initOrder")
    public List<UserAddress> initOrder(String userId) {
        return orderService.initOrder(userId);
    }
}
